﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ScrumMagic
{
    internal class CurrentUser
    {
        int id;
        string login;

        private static CurrentUser instance;

        public static CurrentUser Instance
        {
            get { return instance; }
        }

        private CurrentUser(int id, string login)
        {
            this.id = id;
            this.login = login;
        }

        public int Id
        {
            get { return id; }
        }

        public string Login 
        { 
            get { return login; } 
        }

        public static void Set(int id, string login)
        {
            instance = new CurrentUser(id, login);
        }

        public static void Reset()
        {
            instance = null;
        }
    }
}
